package com.example.customview.view

import android.content.res.Resources
import android.util.TypedValue

val Float.dp
    get() = TypedValue.applyDimension(
            TypedValue.COMPLEX_UNIT_DIP,
            this,
            Resources.getSystem().displayMetrics
    )

val Int.dp
    get() = this.toFloat().dp

interface Eater<T> {
    fun eat(food: T)
}

class Shop<T>(t: T) {
    var goods = t
}